import java.util.*;

/**
 * @author LKQ
 * @date 2022/4/14 17:10
 * @description 根据 (a&b)^(a&c) = a&(b^c)
 */
public class Solution2 {
    public static void main(String[] args) {

    }
    public int getXORSum(int[] arr1, int[] arr2) {
        int sum1 = 0;
        int sum2 = 0;
        for (int i : arr1) {
            sum1^=i;
        }
        for (int i : arr2) {
            sum2^=i;
        }
        return sum1&sum2;
    }
}
